package com.pms.house;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.googlecode.cswish.annotation.Rest;
import com.googlecode.cswish.struts.spring.GenericService;

@Service
public class GardenService {
	@Resource
	GenericService genericService;
	
	
	@Rest(simpleServiceName="loginUser", type="free")
	public List<Garden> getAllGardens(){
		Garden example = new Garden();
		return genericService.searchAll(example).getData();
	}
}
